/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package watcherMode;

/**
 *
 * 被观察者
 * @author root
 */
public interface Watched {
    
    /**
     * 添加观察者
     * @param w 
     */
    public void addWatcher(Watcher w);
    
    /**
     * 删除观察者
     * @param w 
     */
    public void removeWatcher(Watcher w);
    
    /**
     * 更新观察者
     * @param msg 
     */
    public void notifyWatchers(String msg);
}
